designware_i2c: disable i2c controller during target address setup
authorAlexey Brodkin <[email protected]>
Thu, 7 Nov 2013 13:52:18 +0000 (17:52 +0400)
committerHeiko Schocher <[email protected]>
Wed, 13 Nov 2013 05:22:06 +0000 (06:22 +0100)
commit8b7c87253960aac0b670e606d8dbe2f64b1e5652
treeadbd81a856837d53e60e7bd94541c40002968071
parenta2e0a45d2e1e258cbe9bd3dbbe7bc7cacbf7a84e
designware_i2c: disable i2c controller during target address setup

As it is stated in DesignWare I2C databook: writes to IC_TAR (0x4)
register succeed only when IC_ENABLE[0] is set to 0.

Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Tom Rini <[email protected]>
cc: Armando Visconti <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Albert ARIBAUD <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Vipin KUMAR <[email protected]>
Cc: Tom Rix <[email protected]>
Cc: Mischa Jonker <[email protected]>
drivers/i2c/designware_i2c.c